package com.ljkj.blockpay.basedata;

import android.content.Context;

import com.ljkj.blockpay.BlockApplication;
import com.ljkj.blockpay.util.Preferences;

/**
 * 参数配置文件
 */
public final class BuildConfig {
    public static final boolean DEBUG = Boolean.parseBoolean("true");
    //测试
//    public static final String BASE_API_HOST = "http://192.168.1.19:8080/";
    //正式
    public static final String BASE_API_HOST = "http://8.142.157.45:8280/";
    public static final String BASE_API_SERVICE = BASE_API_HOST + "api/";

    public static String getToken(){
        return Preferences.getInstance().getString(BlockApplication.context,"login","token");
    }

    public static String cleanToken(){
        return Preferences.getInstance().set(BlockApplication.context,"login","token","");
    }



}
